package day18_Reflection.demo06_Reg;

public class Demo02 {
    public static void main(String[] args) {
        //qq.com  163.com  xxx.com
        String s="xxxxxx";
        String[] split = s.split("@");
        if (split.length==2){
            if (split[1].equals("qq.com")||split[1].equals("163.com")){
                System.out.println("合理");
            }else{
                System.out.println("不合理");
            }
        }else{
            System.out.println("不合理");
        }
    }
}
